package com.digital.welcome.controller;


import com.digital.welcome.entity.College;
import com.digital.welcome.service.UserCollegeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 韩
 */
@RestController
@RequestMapping("/user-college")
public class UserCollegeController {

    @Autowired
    private UserCollegeService userCollegeService;

    @ApiOperation("获取学院人数")
    @RequestMapping(value = "/get-number", method = RequestMethod.GET)
    public String getNumber(@RequestBody College college) {
        return userCollegeService.getNumber(college);
    }
}
